Assigning actions to a frame

Assign a frame action to a keyframe to make the movie do something when it reaches that frame. For example, to create a loop within a movie, you could add a frame action to frame 20 that specifies "go to frame 10 and play."

It's a good idea to place frame actions in a separate layer. Frames with actions display a small a in the Timeline.

To assign an action to a keyframe:

1 Select a keyframe in the Timeline and choose Modify > Frame, or double-click a keyframe.
If a keyframe is not selected, the action is assigned to the previous keyframe.
2 Click the Actions tab, and then click the + (plus) and then choose a statement from the pop-up menu.
Depending on the action you choose, the Parameters pane can offer additional parameters for the statement. For information about a specific statement, see the topics later in this chapter. You can also look up specific statements in the Index.
If you are familiar with basic programming, you can specify parameters as expressions that Flash evaluates when the movie plays. See Writing expressions.
3 Assign additional statements to make more than one thing happen when the frame is displayed.
Flash inserts a new statement below the currently selected statement. Flash executes statements in the order they appear. Use the up and down buttons to change the order of actions.

To test a frame action in a scene:

Choose Control > Enable Frame Actions before playing the movie.